aux_source_directory(. SRC_LIST)
include_directories(../include)
# find required opencv
find_package(OpenCV REQUIRED)
find_package(OpenCV QUIET COMPONENTS core highgui imgproc imgcodecs videoio)
# directory of opencv headers
include_directories(${OpenCV_INCLUDE_DIRS})
# directory of opencv library
link_directories(${OpenCV_LIBRARY_DIRS})
add_compile_options(-std=c++11 -Wall -Werror)
add_executable(2021_top ${SRC_LIST})
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#下面这个命令是给可执行文件链接库的，-l对应so文件（如果有时链接不上就改一下后缀），不加就是对应a后缀
target_link_libraries(2021_top -lpthread -luuid -lX11)
target_link_libraries(2021_top ${OpenCV_LIBS} )